/*
 * @Description: 存储uav全局信息
 * @Date: 2022-03-06 18:27:55
 * @Author: yeming
 */

const UAV = {
  SESSION_ID: '',
  LOCKED_UAV: 0,
  LOCKED_POD: 0
}

function setUavActiveSessionId (sessionId) {
  UAV.SESSION_ID = sessionId
}

function getUavActiveSessionId () {
  return UAV.SESSION_ID
}

function setUavLocked (locked) {
  UAV.LOCKED_UAV = locked
}

function getUavLocked () {
  return UAV.LOCKED_UAV
}

function setPodLocked (locked) {
  UAV.LOCKED_POD = locked
}

function getPodLocked () {
  return UAV.LOCKED_POD
}

export {
  UAV,
  setUavActiveSessionId,
  getUavActiveSessionId,
  setUavLocked,
  getUavLocked,
  setPodLocked,
  getPodLocked
}
